<?php
namespace app\admin\model;

use think\model;
class ClassroomModel extends model{
    protected $name = 'class';
    public function Major(){
        return $this->hasOne('MajorModel','id','major_id');
    }
}